package com.mezz.bones.im.sdk.domain.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: zhuang
 * @Date: 2025/1/10 9:51
 * @Description: TODO
 * @Version: 1.0
 **/

@Data
@ApiModel("会话列表数据模型")
public class ConversationRecordRes implements Serializable {

    private List<RecordData> list;

    @Data
    public class RecordData {
        @ApiModelProperty("会话ID")
        private String conversationId;

        @ApiModelProperty(value = "1单聊 2群聊")
        private Integer sessionType;

        @ApiModelProperty("对端用户ID/对端群组ID")
        private String peerId;
        @ApiModelProperty("用户类型 user-用户 srm-供应商 saas-平台端 group-群组")
        private String peerType;
        @ApiModelProperty("对端用户昵称/群昵称")
        private String peerNickname;

        @ApiModelProperty("对端用户备注昵称")
        private String peerRemarkName;

        @ApiModelProperty("对端用户头像/群头像")
        private String peerAvatar;
        @ApiModelProperty("最近一次消息内容-格式化显示")
        private String lastMsgContent;
        @ApiModelProperty("最近一次消息时间")
        private Date lastMsgTime;

        @ApiModelProperty(value = "未读数")
        private Integer unreadCount;

        @ApiModelProperty(value = "1置顶 0否")
        private Integer topFlag;

        @ApiModelProperty("数据流分页游标ID")
        private Long cursorId;
    }
}
